<?php
namespace app\admin\controller;

use think\Controller;
use think\Db;

//收藏
class favorite extends Controller
{
public function favorites(){
//    return '啊啊啊啊啊啊啊';
    $list = Db::table('favorite')->select();
//    dump($list);
    return view('index/favorite',[
        'title' => '收藏表',
        'list' => $list,
    ]);
}

}